package com.wise.service.cms.content.pagedecorate;

import com.wise.entities.content.Decorate;
import com.wise.framework.daomodel.DaoOne;
import com.wise.summer.v1.cms.content.pagedecorate.GetPageDecorateById;
import org.springframework.stereotype.Service;
import org.summerframework.model.SummerService;
import org.summerframework.model.SummerServiceBean;

//根据type,module,lang查询分页信息
@Service
@SummerService
public class GetPageDecorateByIdService implements SummerServiceBean<GetPageDecorateById> {

    @Override
    public void sum(GetPageDecorateById model) {

        Decorate decorate = DaoOne.s(Decorate.class, model.getId(), null);
        model.setSummerResult(decorate);

    }
}
